package com.example.blog.dao;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

@Mapper
@Component
public interface blogAndTagRepository {

    @Insert("insert into blog.blog_tag (blog_id , tag_id) values (#{blogId} , #{tagId})")
    public void save(Integer blogId, Integer tagId);

    @Delete("delete from blog.blog_tag where blog_id = #{blogId}")
    public void delete(Integer blogId);
}
